<template>
	<mescroll-uni :ref="'mescrollRef' + i" @init="mescrollInit" height="100%" :top="listTop" :down="downOption"
		@down="downCallback" :up="upOption" @up="upCallback" @emptyclick="emptyClick">
		<!-- 数据列表 -->
		<view class="goods-list single-column">
			<view class="goods-item margin-bottom" v-for="(item, index) in orderList" :key="index">
				<view class="item-box">
					<view>
						<view class="item-header">
							<view class="header-left">车次号: {{ item.journey_sn }}</view>
							<view class="header-right">{{getJourneyStatus(item)}}</view>
						</view>
						<view class="bottom-line">
							<view class="line"></view>
						</view>
						<view class="type-box">
							<view class="item-type">
								<text class="name">车牌号：</text>
								<text class="type-value"> {{ item.car_num }}</text>
							</view>
							<view class="item-type">
								<text class="name">司机电话：</text>
								<text class="type-value"> {{ item.driver_tel }} </text>
							</view>
						</view>
						<view class="remark">
							<text class="name">货物数量：</text>
							<text class="value">{{ item.waybill_goods_num }}</text>
						</view>
					</view>

					<view class="btns-box">
						<view class="pay" @click="toWaybillList(item)">到车运单</view>
					</view>

				</view>
			</view>
		</view>
		<!-- <view v-if="orderList.length == 0 && emptyShow"><ns-empty text="暂无订单" :isIndex="false" :emptyType="emptyType"></ns-empty></view> -->
		<loading-cover ref="loadingCover"></loading-cover>
	</mescroll-uni>
</template>

<script>
	import listitem from './car-list.js';
	import MescrollMixin from '@/components/mescroll-uni/mescroll-mixins.js';
	import MescrollMoreItemMixin from '@/components/mescroll-uni/mixins/mescroll-more-item.js';

	export default {
		mixins: [MescrollMixin, MescrollMoreItemMixin, listitem], // 注意此处还需使用MescrollMoreItemMixin (必须写在MescrollMixin后面)
		data() {
			return {

			};
		},
		methods: {

		}
	};
</script>

<style lang="scss">
	@import './car-list.scss';
</style>